/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.DragonPokerServer.Classes;

import java.util.ArrayList;
import org.DragonPokerServer.Thread.ThreadUser;

/**
 *
 * @author alien
 */
public class HandPlayer {
    private ArrayList<Card> cards = new ArrayList();
    private Player player;
    private int points = 0;

    public HandPlayer() {
    }

    public HandPlayer(Player player) {
        this.player = player;
    }

    public HandPlayer(Player player, int points) {
        this.player = player;
        this.points = points;
    }

    public ArrayList<Card> getCards() {
        return cards;
    }

    public void setCards(ArrayList<Card> cards) {
        this.cards = cards;
    }

    public Player getPlayer() {
        return player;
    }

    public void setPlayer(Player player) {
        this.player = player;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }

    @Override
    public String toString() {
        return getPlayer().getThreadUser().getUser().getUsername();
    }

    
}
